package com.example.demo01;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Objects;

/**
 * description: ArrayListDemo <br>
 * date: 2021/2/1 16:47 <br>
 *
 * @author: ZhangYixin <br>
 * version: 1.0 <br>
 */
public class ArrayListDemo {

    public static void main(String[] args) {

        MyArrayList arrayList = new MyArrayList();

        for (int i = 0; i < 10; i++) {
            arrayList.add("sp"+i);
        }
        for (int i = 0; i < arrayList.size(); i++) {
            System.out.println(arrayList.get(i));
        }


        System.out.println(arrayList.indexOf("sp4"));

        Objects.equals("","");

        /*ArrayList<String> arr = new ArrayList<>();
        for (int i = 0; i < 15; i++) {
            arr.add("sp"+i);
        }

        System.out.println(arr.size());
        arr.add("end");
        arr.add("end+1");
        System.out.println(arr.size());*/
    }

}
